import requests

# 爬取图片
with open('./my_img.jpg', 'wb') as i:
    r = requests.get('https://imgm.gmw.cn/attachement/jpg/site215/20200203/7331387326140037126.jpg')
    # Method 1
    # i.write(r.content)

    # Method 2
    # for chunk in r.iter_content(512):
    #     i.write(chunk)
